from django.contrib import admin
from .models import *


class UsersProfile(admin.ModelAdmin):
    list_display = [field.name for field in Users._meta.get_fields() if field.name != 'password']  # 展示所有数据
    # list_editable = ['']
    # exclude = ['password']  # 显示排除这个字段
    list_per_page = 10
    search_fields = ['user_name', 'user_account']


admin.site.register(Users, UsersProfile)
